#ifndef SLIDER_H 
#define SLIDER_H

#include "common.h" 

typedef struct slider_
{
	SDL_Surface* text;
	SDL_Rect rect;
	SDL_Rect groove_rect;
	SDL_Rect handle_rect;
	//SDL_Surface* img;
} slider;

void init_slider(slider* s, char* text, int x, int y, int l, int w, float frac);
void display_slider(SDL_Surface* screen, slider* s);
float get_slider_fraction(slider* s);
float set_slider_fraction(slider* s, float frac);
int touch_slider(slider* s, int x, int y);

#endif
